<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('user/userInfo')}">{:lang('ADMIN_USER_USERINFO')}</a></li>
			<li><a href="{:url('setting/password')}">{:lang('ADMIN_SETTING_PASSWORD')}</a></li>
		</ul>
		<form class="form-horizontal js-ajax-form margin-top-20" role="form" method="post" action="{:url('User/userinfoPost')}">
			<div class="form-group">
				<label for="input-user-nickname" class="col-sm-2 control-label">{:lang('NICKNAME')}</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user-nickname" name="user_nickname" value="{$user_nickname}">
				</div>
			</div>
			<div class="form-group">
				<label for="input-gender" class="col-sm-2 control-label">{:lang('GENDER')}</label>
				<div class="col-md-6 col-sm-10">
					<select class="form-control" name="sex" id="input-gender">
						<php>$sexs=array("0"=>lang('GENDER_SECRECY'),"1"=>lang('MALE'),"2"=>lang('FEMALE'));</php>
						<foreach name="sexs" item="vo">
							<php>$sexselected=$key==$sex?"selected":"";</php>
							<option value="{$key}" {$sexselected}>{$vo}</option>
						</foreach>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label for="input-birthday" class="col-sm-2 control-label">{:lang('BIRTHDAY')}</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control js-bootstrap-date" id="input-birthday" name="birthday" value="{:date('Y-m-d',$birthday)}" placeholder="2013-01-04">
				</div>
			</div>
          <div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">提现真实姓名</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_url" name="tx_name" value="{$tx_name}" placeholder="张三">
				</div>
			</div>
			<div class="form-group">
				<label for="input-user_url" class="col-sm-2 control-label">提现银行</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_url" name="tx_card_name" value="{$tx_card_name}" placeholder="农业银行">
				</div>
			</div>
          	
			<div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">提现银行卡号</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" id="input-user_url" name="tx_card_code" value="{$tx_card_code}" placeholder="123456790">
				</div>
			</div>
          <div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">余额</label>
				<div class="col-md-6 col-sm-10">
					<p style="float:  left;line-height: 35px;margin-right:  14px;background:  #eee;padding: 0 17px;">￥{$balance}  </p>     <button class="btn btn-success balance "data="{$id}" type="button">余额明细</button>

				</div>
			</div>
          <div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">积分</label>
				<div class="col-md-6 col-sm-10">
					<p style="float:  left;line-height: 35px;margin-right:  14px;background:  #eee;padding: 0 17px;">{$score}</p><button class="btn btn-success score" data="{$id}" type="button">积分明细</button>
                 
				</div>
			</div>
			<div class="form-group">
				<label for="input-signature" class="col-sm-2 control-label">提现</label>
				<div class="col-md-6 col-sm-10">
					<button class="btn btn-info tixian "data="{$id}" type="button" data-original-title="最低提现金额￥1000" data-toggle="tooltip">提现</button>
					<button class="btn btn-success tixian_info "data="{$id}" type="button">提现明细</button>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
  <script>
    $(function () {
        $('.score').click(function () {
            var scoreId = $(this).attr('data');
            openIframeLayer("/admin/user/score_info.html?id=" + scoreId, '积分明细', {
                area: ['900px', '600px']
            });
        })
        $('.balance').click(function () {
            var balanceId = $(this).attr('data');
            openIframeLayer("/admin/user/balance_info.html?id=" + balanceId, '余额明细', {
                area: ['900px', '600px']
            });
        })
        $('.tixian_info').click(function () {
            var balanceId = $(this).attr('data');
            openIframeLayer("/admin/user/tixian_info.html?id=" + balanceId, '提现明细', {
                area: ['900px', '600px']
            });
        })

        $('.tixian').click(function () {
            var tixianId = $(this).attr('data');
            var balance={$balance};
            if(balance>=1000){
                openIframeLayer("/admin/user/tixian.html?id=" + tixianId, '提现', {
                    area: ['900px', '600px']
                });
			}else{
                Wind.use("layer", function () {
                    layer.msg('最低提现金额￥1000元,当前余额：￥'+balance)
                });
			}

        })
    })

</script>
</body>
</html>